import React, {
    Component
} from 'react';
import config from './config.json';
import styles from './Greeter.css'; //导入 .root 到 Greeter.js 中
// var config = require('./config.json');
// module.exports = function () {
//     var greet = document.createElement('div');
//     greet.textContent = "Hi there and greetings!";
//     greet.textContent = config.greetText;
//     return greet;
// }

class Greeter extends Component {
    render() {
        return (<div> { config.greetText } </div>);
    }
}

export default Greeter;